/**
 * @param {username} 用户名
 * @param {password} 密码
 */

export interface LoginParmas {
  username: string
  password: string
}
/**
 * 登录成功获取token
 */
export interface LoginResponse {
  token: string
}
/**
 * @name useinfoResponse
 * @desc 获取用户信息结果
 */
export interface useinfoMenus {
  id: number
  rule_id: number
  status: number
  create_time: string
  update_time: string
  name: string
  desc: string
  frontpath: null
  condition: null
  menu: number
  order: number
  icon: string
  method: string
  child: useinfoMenus[]
}
/**
 * @name 获取用户信息
 */
export interface InfoResponse {
  avatar?: string
  id?: number
  super?: number
  role?: {
    id: number
    name: string
  }
  menus?: useinfoMenus[]
  ruleNames?: string[]
  username?: string
}
/**
 * @name 修改密码的参数
 */
export interface upDataWordParmas {
  oldpassword: string
  password: string
  repassword: string
}
